<%@ page language="java" isErrorPage="true" import="com.probiz.estore.webapp.util.RequestUtil"%>
<%@ include file="/common/taglibs.jsp"%>
<%!private final static transient org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory
			.getLog("accessDenied_jsp");%>
<%
	//TODO, a bug report form, and attach the stack trace in a hidden field with the bug report, and remove these code
	String errorUrl = RequestUtil.getErrorUrl(request);
	//acegi will throw NullPointerException when user click logout but session is already timeout.
	if (errorUrl.indexOf("j_acegi_logout") != -1) {
		response.sendRedirect(request.getContextPath());
	}
	logger.error(RequestUtil.getErrorInfoFromRequest(request, logger.isInfoEnabled()));
%>
<title>
	<i18n:msg expr="errorPage.title" />
</title>
<div class="main">
	<div class="error_notice clearfix">
			<div class="ant_emotion"><img src="${noTxtImagePath}/403.jpg" /></div>
			<div class="error_wrap">
				<h3>访问被拒绝</h3>
				<div class="error_info">
					对不起，您的当前角色没有查看此页面的权限。
				</div>
				<div class="recommend_info">
					<dl>
						<dd>请联系您的系统管理员，以获得相应的权限。<a href="${ctxPath}/">点击这里返回主页</a>。</dd>
						<dd>如果需要技术支持，<a href="mailto:${appConfig.bugReportEmail}">点击这里发送邮件</a>。</dd>
					</dl>
				</div>
			</div>
		</div>
</div>